package com.fitness.front.convertor;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fitness.front.modal.member.dto.MemberDto;
import com.fitness.front.modal.member.entity.Member;
import com.fitness.front.modal.member.vo.MemberVO;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper(componentModel = "spring")
public interface MemberConvertor {
    Member dto2Entity(MemberDto userDto);

    Page<MemberVO> entity2Vo(Page<Member> userBoPage);

    List<MemberVO> entities2Vos(List<Member> members);

    MemberVO entity2Vo(Member member);
}
